package com.zhj.mvc.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Data;

/**
 * 订单表
 */
@Data
@TableName(value = "t_order", autoResultMap = true)
public class Order {
    /**
     * 主键id
     */
    private Long id;

    /**
     * 用户名称
     */
    @TableField(typeHandler = JacksonTypeHandler.class, value = "user_name")
    private String userName;

    /**
     * 订单id
     */
    private Long orderId;
}
